package com.example.ordersystem.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.ordersystem.entity.Order;
import com.example.ordersystem.entity.vo.FoodVo;
import com.example.ordersystem.entity.vo.OrderVo;
import java.util.List;

public interface OrderService extends IService<Order> {

    boolean add(List<FoodVo> foodVoList, Order order);

    Page<Order> viewUserList(String userId,String currentPage);

    List<Order> viewAll();

    void handle(String orderId,String endTime);

    //需要改
    Page<Order> adminViewAll(String currentPage);

    void receiveOrder(String orderId,String courierId);

    List<Order> viewReceiveList(String courierId);

    List<Order> viewHandleList(String courierId);

    List<OrderVo> viewDetail(String orderId);
}
